<?php echo $this->load->view('meta'); ?>
<title>xa-ncsu | profile</title>
<?php echo $this->load->view('header'); ?>
<div id="profile" class="clearfix">
	<?=$this->validation->error_string;?>
	<p class="right"><?=anchor('users/profile/'.$user->userid, 'cancel');?></p>
	<div class="clearfix">
		<?=form_open('users/profile/edit');?>
			<fieldset>
			<legend><span>update profile</span></legend>
			<ol>
				<li><label for="firstname">first name</label>
					<input type="input" name="firstname" value="<?=$user->firstname?>" /></li>
				<li><label for="lastname">last name</label>
					<input type="input" name="lastname" value="<?=$user->lastname?>" /></li>
				<li><label for="display">name to display</label>
					<input type="input" name="display" value="<?=$user->display?>" /></li>
				<li><label for="email">email</label>
					<input type="input" name="email" value="<?=$user->email?>" /></li>
				<li><?=form_submit('','submit')?></li>
			</ol>
			</fieldset>
		</form>
	</div>
	<br />
	<p><?=anchor('users/profile/password', 'change password')?></p>
</div>
<?php echo $this->load->view('footer'); ?>